package com.yufei.infoExtractor.pfw.entity;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Iterator;
import java.util.Map;

import javax.xml.bind.annotation.XmlElement;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.yufei.infoExtractor.core.LinkAction;
import com.yufei.infoExtractor.util.sequence.SequenceUUID;




public class Relatedlink extends Entity {
	@Override
	public String toString() {
		return "Relatedlink [seedSiteId=" + seedSiteId + ", link=" + link
				+ ", status=" + status + ", hashCode=" + hashCode + ", depth="
				+ depth + ", upLink=" + upLink + ", findTime=" + findTime
				+ ", title=" + title + ", site=" + site + ", domain=" + domain
				+ ", name=" + name + ", linkType=" + linkType + "]";
	}
	private static Log mLog = LogFactory.getLog(Relatedlink.class);
	private String seedSiteId;
	private String link;
	private Integer status=LinkAction.UNPARSE;
	private String hashCode="";
	private Integer depth;
	private String upLink;
	private Date findTime=null;
	/**
	 * 是否被处理（比如：里面的属性的抽取等）
	 */
	private boolean isProcessed=false;
	public boolean isProcessed() {
		return isProcessed;
	}
	public void setProcessed(boolean isProcessed) {
		this.isProcessed = isProcessed;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public Date getFindTime() {
		return findTime;
	}

	public void setFindTime(Date findTime) {
		this.findTime = findTime;
	}

	public String getSeedSiteId() {
		return seedSiteId;
	}

	public void setSeedSiteId(String seedSiteId) {
		this.seedSiteId = seedSiteId;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getHashCode() {
		return hashCode;
	}

	public void setHashCode(String hashCode) {
		this.hashCode = hashCode;
	}

	public Integer getDepth() {
		return depth;
	}

	public void setDepth(Integer depth) {
		this.depth = depth;
	}

	public String getUpLink() {
		return upLink;
	}

	public void setUpLink(String upLink) {
		this.upLink = upLink;
	}
	//关联链接主题(链接文字描述)
    private String title="";
    public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}
	private String site="";
	private String domain="";
	//关联链接标题
	private String name="";
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	private Integer linkType;
	private String originalHtmlContent=null;
	private String taskId=null;
	public String getOriginalHtmlContent() {
		return originalHtmlContent;
	}
	@XmlElement(name = "originalHtmlContent")
    public void setOriginalHtmlContent(String originalHtmlContent) {
		this.originalHtmlContent = originalHtmlContent;
	}
	public Integer getLinkType() {
		return linkType;
	}

	public void setLinkType(Integer linkType) {
		this.linkType = linkType;
	}
    


	


	

}